home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CScrollList 1.0 / Demo Classes / CStringEditList.h < prev   
Encoding:
C/C++ Source or Header  |  1994-11-30  |  1.1 KB  |  54 lines  |  [TEXT/KAHL]

  1. /*************************************************************************************
  2.  
  3.  CStringEditList.h
  4.     
  5.         Interface for CStringEditList
  6.     
  7.     SUPERCLASS = CScrollList
  8.     
  9.         © 1992 Dave Harkness
  10.  
  11. *************************************************************************************/
  12.  
  13.  
  14. #define _H_CStringEditList
  15.  
  16. #include "CScrollList.h"
  17. #include "CEditString.h"
  18.  
  19.  
  20. class CStringEditList : public CScrollList
  21. {
  22. public:
  23.  
  24.     void            IStringEditList( CView *anEnclosure, CBureaucrat *aSupervisor,
  25.                                      short aWidth, short aHeight,
  26.                                      short aHEncl, short aVEncl,
  27.                                      SizingOption aHSizing, SizingOption aVSizing,
  28.                                      short fOptions);
  29.     
  30.             // Commands
  31.     
  32.     virtual void    DoInsertCell( short beforeCell);
  33.  
  34. private:
  35.  
  36.     CEditString        *itsEditString;                // Pane for editing the string
  37.     
  38.             // Editing
  39.     
  40.     virtual void    BeginEditing( void);
  41.     virtual void    SetupCellData( void);
  42.     virtual void    RetrieveCellData( void);
  43.     virtual void    DoneEditing( void);
  44.     
  45.             // Drawing
  46.     
  47.     virtual void    DrawCell( short theCell, Rect *cellRect);
  48.     
  49.             // Notification
  50.     
  51.     virtual void    ProviderChanged( CCollaborator *aProvider, long reason, void* info);
  52.  
  53. };
  54.